﻿using IOT4Week1Day1.Domain.IRepositories;
using IOT4Week1Day1.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOT4Week1Day1.App
{
    /// <summary>
    /// 数据字典服务
    /// </summary>
    public class DictAppService : IDictAppService
    {
        private readonly IDictKeyRepository _dictKeyRepository;

        public DictAppService(IDictKeyRepository dictKeyRepository)
        {
            _dictKeyRepository = dictKeyRepository;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="dictName"></param>
        /// <returns></returns
        public List<DictKey> GetDicts(string dictName)
        {
            return _dictKeyRepository.GetDicts(dictName);
        }
    }
}
